package com.ostrich.shopping.ui.user;

import com.ostrich.shopping.net.BaseResponseEntity;
import com.ostrich.shopping.ui.user.entity.UserEntity;

import androidx.lifecycle.LiveData;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/26 15:23
 * @Description : UserApi
 */
public interface UserApi {
    @POST("/user/register")
    LiveData<BaseResponseEntity<UserEntity>> register(@Body UserEntity user);

    @POST("/user/login")
    LiveData<BaseResponseEntity<UserEntity>> login(@Query("nickname") String nickname,@Query("password") String password);
}
